﻿<%@ Page Language="C#" MasterPageFile="AdminMaster.Master" AutoEventWireup="true" CodeBehind="ArticleList.aspx.cs" Inherits="PeachLite.Admin.ArticleList" Title="文章管理"%>
 <asp:Content ClientIDMode="Static" ID="c1" ContentPlaceHolderID="cphHead" runat="server">
    <script type="text/javascript">
        function seach() {
            var k = $("#tbk").val();
            if (k == null || k == "") {
                return;
            }
            else {
                document.location = encodeURI("articlelist.aspx?k=" + k);
            }
        }

        function gosearch() {
            if (event.keyCode == 13) {
                search();
            }
        }

        function del(e) {
            var aid = $(e).parents("tr").attr("aid") ? $(e).parents("tr").attr("aid") : "";
            var name = $(e).parents("tr").children("td:eq(0)").text();
            if (aid == null || aid == "") {
                return;
            }
            if (!confirm('确定要删除文章："' + name + '"?')) {
                return;
            }
            fx({ aid: aid, c: AJAXCODE.DeleteArticle, r: Math.random() });
        }
    </script>
 </asp:Content> 
 <asp:Content ClientIDMode="Static" ID="c2" ContentPlaceHolderID="cphMain" runat="server">
    <div class="box box1">   
        <div class="hd">
            <div class="tit">
                <i class="iconfont">&#xf0f6;</i>
                <span>文章管理</span>
            </div>
        </div>
        <div class="bd">
            <div class="data alist">
                <div class="tp clearfix">
                    <div class="op"><a class="btn btn3" href="ArticleEdit2.aspx" title="添加文章">添加</a></div>
                    <div class="search">
                        <input class="txt" type="text" id="tbk"/>
                        <input class="btn" type="button" value="&#xf002;" onclick="seach();"/>
                    </div>
                </div>
                <table>
                   
                    <tr>
                        <th class="th1">文章标题</th>
                        <th class="th2">所属栏目</th>
                        <th class="th3">作者</th>
                        <th class="th4">创建时间</th>
                        <th class="th5">操作</th>
                    </tr>
                     <asp:Literal ID="lt0" runat="server" ClientIDMode="Static"></asp:Literal>
                </table>
                <div class="btm clearfix">
                    <div class="pager" id="pager">
                        <asp:Literal ID="Pager" runat="server" ClientIDMode="Static"></asp:Literal>
                    </div>
                </div>
            </div>
        </div>
    </div>
 </asp:Content> 

